package jwanalytics.web;

public class MyBackingBean {
	
	/** decideOnPage will optimize a page in the navigation flow aiming at achieving higher conversions. */
	public String decideOnPage() {
		double random = Math.random();
		if (random < 0.33) {
			return "page1"; //for now always navigating to page randomly.
		} else if (random < 0.66) {
			return "page2";
		} else {
			return "page3";
		}
	}
	
}
